package com.jintoufs.service.account.impl;

import com.jintoufs.dao.QueryFilters;
import com.jintoufs.dao.account.AccountDetailMapper;
import com.jintoufs.domain.account.AccountDetail;
import com.jintoufs.service.account.AccountDetailService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * @author chenq
 */
@Service
public class AccountDetailServiceImpl implements AccountDetailService {
    @Resource
    private AccountDetailMapper accountDetailMapper;

    @Override
    public List<Map<String,Object>> getByFilter(QueryFilters filters) {
        return accountDetailMapper.getByFilter(filters);
    }

    @Override
    public List<Map<String, Object>> getPlatformByFilter(QueryFilters filters) {
        return accountDetailMapper.getPlatformByFilter(filters);
    }

    @Override
    public List<Map<String, Object>> getDetailByFilter(QueryFilters filters) {
        return accountDetailMapper.getDetailByFilter(filters);
    }

    @Override
    public void insert(AccountDetail accountDetail) {
        accountDetailMapper.insertSelective(accountDetail);
    }

    @Override
    public BigDecimal selectByShopId(String shopId) {
        return accountDetailMapper.selectByShopId(shopId);
    }

    @Override
    public List<Map<String, Object>> getByParam(Map<String, Object> param) {
        return accountDetailMapper.getByParam(param);
    }
}
